package com.hzhr.iot.cqgas.ds.dao.smartmeter.example;

import com.hzhr.iot.cqgas.ds.entity.smartmeter.SmCollectingDataEntity;
import com.hzhr.iot.cqgas.ds.entity.smartmeter.SmCollectingDataExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SmCollectingDataDao {
    /**
     *
     * @param example
     */
    int countByExample(SmCollectingDataExample example);

    /**
     *
     * @param example
     */
    int deleteByExample(SmCollectingDataExample example);

    /**
     * 根据主键删除数据库的记录
     *
     * @param cdId
     */
    int deleteByPrimaryKey(String cdId);

    /**
     * 插入数据库记录
     *
     * @param record
     */
    int insert(SmCollectingDataEntity record);

    /**
     *
     * @param record
     */
    int insertSelective(SmCollectingDataEntity record);

    /**
     *
     * @param example
     */
    List<SmCollectingDataEntity> selectByExample(SmCollectingDataExample example);

    /**
     * 根据主键获取一条数据库记录
     *
     * @param cdId
     */
    SmCollectingDataEntity selectByPrimaryKey(String cdId);

    /**
     *
     * @param record
     * @param example
     */
    int updateByExampleSelective(@Param("record") SmCollectingDataEntity record, @Param("example") SmCollectingDataExample example);

    /**
     *
     * @param record
     * @param example
     */
    int updateByExample(@Param("record") SmCollectingDataEntity record, @Param("example") SmCollectingDataExample example);

    /**
     *
     * @param record
     */
    int updateByPrimaryKeySelective(SmCollectingDataEntity record);

    /**
     * 根据主键来更新数据库记录
     *
     * @param record
     */
    int updateByPrimaryKey(SmCollectingDataEntity record);
}